﻿using Day23Movies.Data.Models;
using Microsoft.AspNet.Identity.EntityFramework;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Day23Movies.Data
{
    public class MoviesContext : IdentityDbContext<User>
    {
        public MoviesContext()
            : base("DefaultConnection", throwIfV1Schema: false)
        {
        }

        public DbSet<Movie> Movies { get; set; }

        public static MoviesContext Create()
        {
            return new MoviesContext();
        }
    }
}
